@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font: bold;
}

:root {
  --hue-neutral: 200;
  --hue-wrong: 0;
  --hue-correct: 145;
  --hue-background: rgb(29, 26, 26);
}

body {
  --hue: var(--hue-neutral);
  padding: 0;
  margin: 0;
  display: flex;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background-color: rgb(29, 26, 26);;
}

.correct {
  --hue: var(--hue-correct);
}

.wrong {
  --hue: var(--hue-wrong);
}


.container {
  width: 800px;
  max-width: 80%;
  background-color: white;
  border-radius: 5px;
  border-color: black;
  padding: 10px;
  box-shadow: 0 0 20px 4px;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 15px;
  margin: 20px 0;
}

.btn {
  --hue: var(--hue-neutral);
  border: 2px solid hsl(var(--hue), 100%, 30%);
  background-color: hsl(var(--hue), 100%, 50%);
  border-radius: 5px;
  padding: 5px 10px;
  color: white;
  outline: none;
}

.btn:hover {
  border-color: black;
  border-style: inherit;
  cursor: pointer;
}

.btn.correct {
  --hue: var(--hue-correct);
  color: black;
}

.btn.wrong {
  --hue: var(--hue-wrong);
}

.start-btn, .next-btn {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 10px 20px;
}

/* Score Card Styles */

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#initials {
  width: 25%;
  margin: 8px;
  padding: 1vh;
}

#result-div {
  display: none;
}

/* Leaderboard Card Styles */

#back-button {
  margin-right: 8px;
}

.highscore-list {
  padding-inline-start: 20px;
}

#score-card.card {
  width: 800px;
  max-width: 80%;
  background-color: white;
  border-radius: 5px;
  border-color: black;
  padding: 10px;
  box-shadow: 0 0 20px 4px;
}

#leaderboard-card.card {
  width: 800px;
  max-width: 80%;
  background-color: white;
  border-radius: 5px;
  border-color: black;
  padding: 10px;
  box-shadow: 0 0 20px 4px;
}

/* controls */

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hide {
  display: none;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4.0rem;
  background-color: rgb(20, 180, 180);
  color: white;
  justify-content: space-between;
  font-size: 1.5rem;
}

